/*
 * rtthread_transplant.h
 *
 *  Created on: 2021/12/21
 *      Author: taoye
 */

#ifndef SRC_COMM_ULOG_ULOG_TRANSPLANT_H_
#define SRC_COMM_ULOG_ULOG_TRANSPLANT_H_


#include <stddef.h>
#include <string.h>
#include <stdio.h>

#define 	RT_NAME_MAX 					8

#include <rtdef.h>
#include <rtservice.h>
#include "Alog_default.h"
#if A_PROTOCOL_USE_RTOS == 1
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
#include "time.h"
#endif

#define		RT_USING_ULOG
#define		ULOG_OUTPUT_FLOAT
//#define		ULOG_USING_SYSLOG
#define 	ULOG_BACKEND_USING_CONSOLE
#define		ULOG_OUTPUT_LEVEL
//#define		ULOG_OUTPUT_TAG

#define 	LOG_TAG              			ALOG_TAG
#define 	LOG_LVL              			LOG_LVL_DBG
#define 	ULOG_OUTPUT_LVL  				LOG_LVL_DBG

#define 	RT_ASSERT(x)				    ((void)0)
#define		rt_memcpy						memcpy
#define		rt_strncpy						strncpy
#define  	rt_strlen						strlen
#define 	rt_memset						memset
#define		rt_snprintf						snprintf

#define		rt_hw_interrupt_disable()		taskENTER_CRITICAL()
#define		rt_hw_interrupt_enable()		taskEXIT_CRITICAL()

#define		rt_interrupt_get_nest()			0

#define		rt_tick_get()					0

#endif /* SRC_COMM_ULOG_ULOG_TRANSPLANT_H_ */
